<?php

namespace yan\backendclient\modules\role\models;

use Yii;

/**
 * This is the model class for table "{{%backend_role_menu}}".
 *
 * @property integer $menu_id
 * @property string $contrl
 */
class RoleMenu extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%backend_role_menu}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['menu_id', 'contrl'], 'required'],
            [['menu_id'], 'integer'],
            [['contrl'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'menu_id' => Yii::t('debug', 'Menu ID'),
            'contrl' => Yii::t('debug', 'Contrl'),
        ];
    }
}
